|
|
|
|
|
|
|
You need to remove trailing spaces from the right of the fields, so start the formula by double-clicking the TrimRight() function from the Functions list. Notice that when you add a function to the Formula Text window, your cursor is positioned ready to insert the required parameters. Because the cursor is already between the two parentheses of the TrimRight() function, double-click City from the Fields list. Crystal Reports Pro places the field name (along with the data table name) inside the TrimRight() function. (See Figure 6.15.) |
|
|
|
|
|
|
|
|
Figure 6.15.
Adding the TrimRight() function and the City field. |
|
|
|
|
|
|
|
|
You need to add a similar function that does the same thing to the StateProv database field. First, move the cursor in the Formula text box to the end of the formula string and enter a plus sign (+). Next, add another TrimRight() function and insert the StateProv field into the function. Compare your screen to the one shown in Figure 6.16. |
|
|
|
|
|
|
|
|
Figure 6.16.
Adding the TrimRight()function and the StateProv field. |
|
|
|
|
|